//
//  BIDBillsLookoverManager.h
//  随手记01
//
//  Created by Yeming on 13-5-25.
//  Copyright (c) 2013年 邵瑞. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BIDBillsLookoverManager : NSObject
+(BIDBillsLookoverManager*)shareBillsLookoverManager;


//按照日期查看
-(NSInteger)numberOfMonthInYear:(NSInteger)aYear;
-(NSMutableArray *)arrayOfMonthsInYear:(NSInteger)aYear;
-(NSInteger)billsCountInMonth:(NSInteger)month andYear:(NSInteger)year;
-(NSInteger)totalAmountCountInMonth:(NSInteger )month andYear:(NSInteger)year;
-(NSMutableArray*)billsArrayInMonth:(NSInteger)month andYear:(NSInteger)year;
-(float)spendAmountCountInMonth:(NSInteger )month andYear:(NSInteger)year;
-(float)incomeAmountCountInMonth:(NSInteger )month andYear:(NSInteger)year;
-(NSInteger)totalAmountCountYearSpent:(NSInteger)years;


//按照类别查看
-(NSInteger)numberOfMainTypesInYear:(NSInteger)aYear;
-(NSMutableArray *)listOfMainTypesInYear:(NSInteger)aYear;
-(NSInteger)numberOfBillsOfMainType:(NSInteger)aMainType_ID inYear:(NSInteger)aYear;
-(NSMutableArray*)listOfBillsOfMainType:(NSInteger)aMainType_ID inYear:(NSInteger)aYear;


//饼图查看
-(NSInteger)numberOfMainTypesInMonth:(NSInteger)aMonth andYear:(NSInteger)aYear;
-(NSMutableArray*)listOfMainTypesInMonth:(NSInteger)aMonth andYear:(NSInteger)aYear;
-(NSMutableArray*)listOfAmountOfMainTypesInMonth:(NSInteger)aMonth andYear:(NSInteger)aYear andInType:(NSInteger)type_ID;
-(NSMutableArray *)listOfBillsOfMainType:(NSInteger)type_id inMonth:(NSInteger)month andYear:(NSInteger)year;
-(NSInteger )listOfBillsCountOfMainType:(NSInteger)type_id inMonth:(NSInteger)month andYear:(NSInteger)year;
@end
